package zhangcong.service.impl;

import zhangcong.dao.ZhangCongDao;
import zhangcong.entity.BjEntity;
import zhangcong.entity.Page;
import zhangcong.entity.ZhangCongEntity;
import zhangcong.service.ZhangCongService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service("zhangCservice")
public class ZhangCongServiceImpl implements ZhangCongService {
    @Autowired
    ZhangCongDao zhangCongDao;



    @Override
    public void save(ZhangCongEntity zhangCongEntity) {
         zhangCongDao.save(zhangCongEntity);
    }

    @Override
    public int queryCount(String name) {
        return zhangCongDao.queryCount(name);
    }

    @Override
    public List<ZhangCongEntity> queryPage(Page page, String name) {
        return  zhangCongDao.queryPage(page,name);
    }

    @Override
    public ZhangCongEntity edit(ZhangCongEntity zhangCongEntity) {
        return zhangCongDao.edit(zhangCongEntity);
    }

    @Override
    public void del(ZhangCongEntity zhangCongEntity) {
        zhangCongDao.del(zhangCongEntity);
    }

    @Override
    public List<BjEntity> bj() {
        return zhangCongDao.bj();
    }

    @Override
    public String login(ZhangCongEntity zhangCongEntity) {
        return zhangCongDao.login(zhangCongEntity);
    }


}
